import request from '@/utils/request'

// 查询日常巡查记录列表
export function listDailyInspection(query) {
  return request({
    url: '/patrol/dailyInspection/list',
    method: 'get',
    params: query
  })
}

// 查询日常巡查记录详细
export function getDailyInspection(id) {
  return request({
    url: '/patrol/dailyInspection/' + id,
    method: 'get'
  })
}

// 新增日常巡查记录
export function addDailyInspection(data) {
  return request({
    url: '/patrol/dailyInspection',
    method: 'post',
    data: data
  })
}

// 修改日常巡查记录
export function updateDailyInspection(data) {
  return request({
    url: '/patrol/dailyInspection',
    method: 'put',
    data: data
  })
}

// 删除日常巡查记录
export function delDailyInspection(id) {
  return request({
    url: '/patrol/dailyInspection/' + id,
    method: 'delete'
  })
}

// 获取日常巡查记录表（数据综合查看表）
export function getDailyInspectionTable(data) {
  return request({
    url: '/patrol/dailyInspection/getDailyInspectionTable',
    method: 'get',
    params: data
  })
}
